﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NopSolutions.NopCommerce.Web.Modules
{
  public partial class BannerList : BaseNopFrontendUserControl
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      if (!Page.IsPostBack)
        BindData();
    }

    protected void BindData()
    {
      dlBanners.DataSource = BannerService.GetAllBannersByType(BusinessLogic.Alesko.Banner.BannerTypeEnum.RightMain);
      dlBanners.DataBind();
    }
  }
}